# encoding:utf-8
# import networkx as nx
# import json
# import networkx as nx
# import matplotlib.pyplot as plt
#
# G = nx.DiGraph()  # 建立一个空的无向图G
# # G.add_node(1)  # 添加一个节点1
# G.add_edge(2, 3, events='lll')  # 添加一条边2-3（隐含着添加了两个节点2、3）
# G.add_edge(2, 3, event='kkk')
# G.add_edge(3, 2)  # 对于无向图，边3-2与边2-3被认为是一条边
# G.add_edge(1, 2)
# # print "nodes:", G.nodes()  # 输出全部的节点： [1, 2, 3]
# # print "edges:", G.edges()  # 输出全部的边：[(2, 3)]
# # print "number of edges:", G.number_of_edges()  # 输出边的数量：1
# # print G[2][3]
#
# utg_json = json.dumps(G, indent=2)
# print utg_json

from random import choice
import random

dicts = {5: 1, 2: 2, "s": 3}
for k, v in dicts.items():
    print k, v
l=dicts.keys()
random.shuffle(l)
for li in l:
    print li, dicts[li]
